home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
comm
/
ftp4w24b.zip
/
ftp4w.tbx
< prev
next >
Wrap
Text File
|
1994-12-20
|
987b
|
34 lines
linkDLL "c:\ftpdll\ftp4w.dll"
WORD FtpInit(WORD)
WORD FtpSetSynchronous()
WORD FtpOpenConnection(STRING)
WORD FtpSendUserName(STRING)
WORD FtpSendPasswd(STRING)
WORD FtpCWD(STRING)
WORD FtpSetType(BYTE)
WORD FtpSendFile(STRING,STRING,BYTE,WORD,WORD,WORD)
WORD FtpRecvFile(STRING,STRING,BYTE,WORD,WORD,WORD)
WORD FtpCloseConnection()
end linkDLL
put sysClientHandle into hParentWnd -- this is the handle for the
-- ToolBook program's window
put FtpInit(hParentWnd)
put FtpSetSynchronous()
put FtpOpenConnection("oakster.ece.uiuc.edu") -- it returns 0
put FtpSendUserName("oakley") -- returns one
put FtpSendPasswd("my_password")
put FtpCWD("test") -- it returns 0
put FtpSetType(65) -- 65 is ASCII for A
-- 73 is Image for I
put FtpSendFile("list.tmp","C:\LIST.TMP",65, 0, 0, 0)
put FtpCloseConnection() -- it returns 0